/**
 * 
 */
var Weather = (function() {
	// 初始化
	function Weather(options) {
		this.map = options.ol2d;
		this.map2d=this.map.map2d;
				
		this.init();

	}
	//
	// 初始化
	Weather.prototype.init = function(options) {
		var that = this;
		 

        var tmpLayer = that.ol2d.getLayerById("weather");
        if (tmpLayer == null) { 
            tmpLayer = new ol.layer.Tile({
				id:"weather",
	            source: new ol.source.XYZ({
	                wrapX: true,
	                maxZoom: 8,
	                url: 'http://localhost:1337/wind/20160101/{z}/{x}/{y}?key=12345'
	            })
	        });
            that.ol2d.olmap.addLayer(tmpLayer);
        }   
	}

	 
	// 返回
	return Weather;
})();
 